-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New Expected Condition elements_not_overlapping #14368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Expected Condition elements_not_overlapping #14368
Conversation
…s_not_overlapping, and added an id to javascriptPage.html
|
Simon Benzer seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
|
I'm not sure why it thinks two people committed these changes; Simon Benzer is shbenzer is me |
|
EC support not currently being considered - can reopen/recreate later if necessary |
User description
I have added the new expected condition "elements_not_overlapping". This condition checks that two elements are not overlapping on the dom based on their .rect specs.
Description
Motivation and Context
This update provides added functionality and checks for cases where two elements overlap in the DOM temporarily. Examples include: elements dynamically overlapping during scrolling, multiple instances of loading screens occurring simultaneously on the page, etc.
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
elements_not_overlappingto check if two elements do not overlap based on their rectangle specifications.test_expected_condition_elements_not_overlappingto ensure the new condition works as expected.javascriptPage.htmlto include anidattribute for adivelement to facilitate testing.Changes walkthrough 📝
expected_conditions.py
Add `elements_not_overlapping` expected condition functionpy/selenium/webdriver/support/expected_conditions.py
elements_not_overlappingfunction to check if two elements donot overlap.
rectangles do not intersect.
javascriptPage.html
Add id to div element in javascriptPage.htmlcommon/src/web/javascriptPage.html
idattribute to adivelement for testing purposes.webdriverwait_tests.py
Add test for `elements_not_overlapping` expected conditionpy/test/selenium/webdriver/common/webdriverwait_tests.py
test_expected_condition_elements_not_overlappingtoverify the new expected condition.